<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<div id="app">
    <h3 v-if="ok">西红柿</h3>
    <h3 v-if="no">菠菜</h3>
    <h3 v-if="num>=1000">蔬菜的库存很充足！</h3>
</div>

<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const vm = Vue.createApp({
        data(){
            return {
                ok: true,
                no: false,
                num: 1000
            }
        }
    }).mount('#app');

</script>

</body>
</html>
